package com.matt.domain;

import com.matt.commons.model.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/3/8
 * 主题课程中的适用对象
 * *******************************
 */
@Entity
@Table(name = "target_object")
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class TargetObject extends Model {

    @Column(columnDefinition = "int default 0 COMMENT '编号'")
    private Integer code;

    @Column(columnDefinition = "varchar(50) COMMENT '姓名'")
    private String name;

    @Column(columnDefinition = "varchar(255) COMMENT '姓名'")
    private String description;

    @Column(columnDefinition = "bit default 0 COMMENT '是否删除'")
    private Boolean deleted = false;
}
